/**
 * @author zj
 * 图书类
 */
public class Book {
    private int bookId;
    private String bookName;
    private String press;
    private String type;
    private String writer;
    private boolean isBorrowed;

    @Override
    public String toString() {
        return "Book{" +
                "bookId=" + bookId +
                ", bookName='" + bookName + '\'' +
                ", press='" + press + '\'' +
                ", type='" + type + '\'' +
                ", writer='" + writer + '\'' +
                ", isBorrowed=" + isBorrowed +
                '}';
    }

    public Book(int bookId, String bookName, String press, String type, String writer, boolean isBorrowed) {
        this.bookId = bookId;
        this.bookName = bookName;
        this.press = press;
        this.type = type;
        this.writer = writer;
        this.isBorrowed = isBorrowed;
    }

    public int getBookId() {
        return bookId;
    }

    public void setBookId(int bookId) {
        this.bookId = bookId;
    }

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    public String getPress() {
        return press;
    }

    public void setPress(String press) {
        this.press = press;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getWriter() {
        return writer;
    }

    public void setWriter(String writer) {
        this.writer = writer;
    }

    public boolean isBorrowed() {
        return isBorrowed;
    }

    public void setBorrowed(boolean borrowed) {
        isBorrowed = borrowed;
    }
}
